package com.example.demo1.mapper;

import com.example.demo1.entity.Book;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.ArrayList;


@Repository
public interface BookMapper {
    //增删改查
    int addBook(Book book);

    int deleteBook(Serializable id);

    int updateBook(Book book);

    Book selectBook(Serializable id);

    ArrayList<Book> selectBooks(Book book);
}

